package com.px.mbg.model;

import com.px.mbg.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 出入库记录V1
 * </p>
 *
 * @author 品讯科技
 * @since 2022-03-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="WhRecord对象", description="出入库记录V1")
public class WhRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "库存ID")
    private Long whId;

    @ApiModelProperty(value = "来源1: bom,2:货品")
    private Integer sourceTyoe;

    @ApiModelProperty(value = "库位id")
    private Long storageId;

    @ApiModelProperty(value = "库存类型; 1->原料,2->半成品,3->成品,4->工具,5->配件")
    private String wtype;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "材质")
    private String texture;

    @ApiModelProperty(value = "宽度")
    private String width;

    @ApiModelProperty(value = "长度")
    private String longt;

    @ApiModelProperty(value = "厚度")
    private String thickness;

    @ApiModelProperty(value = "重量")
    private String weight;

    @ApiModelProperty(value = "操作类型;1->入库,2->出库")
    private Integer whType;

    @ApiModelProperty(value = "用途")
    private String purpose;

    @ApiModelProperty(value = "出库前库存数量")
    private BigDecimal balance;

    @ApiModelProperty(value = "出库数量")
    private BigDecimal amount;

    @ApiModelProperty(value = "出库后库存数量")
    private BigDecimal balanceAfter;

    @ApiModelProperty(value = "关联单号")
    private String releaseBh;

    @ApiModelProperty(value = "单据类型")
    private String bnoType;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime operationTime;

    @ApiModelProperty(value = "宽度单位")
    private String widthUnit;

    @ApiModelProperty(value = "重量单位")
    private String weightUnit;

    @ApiModelProperty(value = "长度单位")
    private String lengthUnit;

    @ApiModelProperty(value = "厚度单位")
    private String thicknessUnit;


}
